"""
 @Author: Envision
 @Github: ElapsingDreams
 @Gitee: ElapsingDreams
 @Email: None
 @FileName: exampleNew.py
 @DateTime: 2024/7/21 14:24
 @SoftWare: PyCharm
"""
from MusicPreviewNew.main import MusicPreview
import Musicreater
if __name__ == '__main__':
    MP = MusicPreview(load_all=True)
    # print(MP.res_raw_data)
    cvt_mid = Musicreater.MidiConvert.from_midi_file(
        r"E:\Work2024\test-midi\贝多芬命运交响曲.mid"
    )

    # print(cvt_mid.channels[0])

    # for i in cvt_mid.channels[0]:
    #     print(i.duration)
    MP.to_wav_file(cvt_mid, out_file_name="贝多芬命运交响曲")